package com.dubbo.consumer.controller;

import com.dubbo.consumer.service.HelloServiceConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HelloController class
 *
 * @author 蒋时华
 * @date 2018-7-10
 */
@RestController
public class HelloController {

    @Autowired
    private HelloServiceConsumer helloServiceConsumer;

    @GetMapping("/test")
    public String getHelloTestStr(){
        return helloServiceConsumer.helloTest();
    }


}
